<div class="typecho-page-title">
    <h2>
        管理文章
        <a href="http://php/typecho/admin/write-post.php">
            新增
        </a>
    </h2>
</div>
<div class="row typecho-page-main" role="main">
    <div class="col-mb-12 typecho-list">
        <div class="typecho-list-operate clearfix">
            <form method="get">
                <div class="operate">
                    <label>
                        <i class="sr-only">
                            全选
                        </i>
                        <input type="checkbox" class="typecho-table-select-all" />
                    </label>
                    <div class="btn-group btn-drop">
                        <button class="btn dropdown-toggle btn-s" type="button">
                            <i class="sr-only">
                                操作
                            </i>
                            选中项
                            <i class="i-caret-down">
                            </i>
                        </button>
                        <ul class="dropdown-menu">
                            <li>
                                <a lang="你确认要删除这些文章吗?" href="http://php/typecho/index.php/action/contents-post-edit?do=delete&_=8c97fc088ef48e513381e4ecb6ead2d9">
                                    删除
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="search" role="search">
                    <input type="text" class="text-s" placeholder="请输入关键字" value="" name="keywords"
                    />
                    <select name="category">
                        <option value="">
                            所有分类
                        </option>
                        <option value="1">
                            默认分类
                        </option>
                    </select>
                    <button type="submit" class="btn btn-s">
                        筛选
                    </button>
                </div>
            </form>
        </div>
        <!-- end .typecho-list-operate -->
        <form method="post" name="manage_posts" class="operate-form">
            <div class="typecho-table-wrap">
                <table class="typecho-list-table">
                    <colgroup>
                        <col width="20" />
                        <col width="6%" />
                        <col width="45%" />
                        <col width="" />
                        <col width="18%" />
                        <col width="16%" />
                    </colgroup>
                    <thead>
                        <tr>
                            <th>
                            </th>
                            <th>
                            </th>
                            <th>
                                标题
                            </th>
                            <th>
                                作者
                            </th>
                            <th>
                                分类
                            </th>
                            <th>
                                日期
                            </th>
                        </tr>
                    </thead>
                    <tbody>
						{{range .postData}}
                        <tr id="post-">
                            <td>
                                <input type="checkbox" value="4" name="cid[]" />
                            </td>
                            <td>
                                <a href="" class="balloon-button size-1">
                                    0
                                </a>
                            </td>
                            <td>
                                <a href="/admin/post/update/{{.post.Id}}">
                                    {{.post.Title}}
                                </a>
                                <a href="/archives/{{.post.Id}}" target="_blank" title="浏览 {{.post.Title}}">
                                    <i class="i-exlink">
                                    </i>
                                </a>
                            </td>
                            <td>
                                <a href="">
                                    admin
                                </a>
                            </td>
                            <td>
                                <a href="">
                                    {{.category.Name}}
                                </a>
                            </td>
                            <td>
                            	{{unixToFormatString .post.Pubdate "YYYY-MM-DD HH:mm:ss"}}
                            </td>
                        </tr>
						{{end}}
                    </tbody>
                </table>
            </div>
        </form>
        <!-- end .operate-form -->
        <div class="typecho-list-operate clearfix">
            <form method="get">
                <div class="operate">
                    <label>
                        <i class="sr-only">
                            全选
                        </i>
                        <input type="checkbox" class="typecho-table-select-all" />
                    </label>
                    <div class="btn-group btn-drop">
                        <button class="btn dropdown-toggle btn-s" type="button">
                            <i class="sr-only">
                                操作
                            </i>
                            选中项
                            <i class="i-caret-down">
                            </i>
                        </button>
                        <ul class="dropdown-menu">
                            <li>
                                <a lang="你确认要删除这些文章吗?" href="http://php/typecho/index.php/action/contents-post-edit?do=delete&_=8c97fc088ef48e513381e4ecb6ead2d9">
                                    删除
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <ul class="typecho-pager">
					{{if gt .currentPage 1}}
                    <li>
                        <a href="/admin/post?page={{.prePageNum}}">
                            上一页
                        </a>
                    </li>
					{{end}}
					{{if lt .currentPage .pageSize}}
					<li>
						<a href="/admin/post?page={{.nextPageNum}}">
                            下一页
                        </a>
					</li>
					{{end}}
                </ul>
            </form>
        </div>
        <!-- end .typecho-list-operate -->
    </div>
    <!-- end .typecho-list -->
</div>
<!-- end .typecho-page-main -->